package com.yantong.mapper;

import com.yantong.pojo.ActivityProduct;
import com.yantong.pojo.ActivityProductSku;
import com.yantong.pojo.ActivityProductSkuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityProductSkuMapper {
    long countByExample(ActivityProductSkuExample example);

    int deleteByExample(ActivityProductSkuExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ActivityProductSku record);

    int insertSelective(ActivityProductSku record);

    List<ActivityProductSku> selectByExample(ActivityProductSkuExample example);

    ActivityProductSku selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ActivityProductSku record, @Param("example") ActivityProductSkuExample example);

    int updateByExample(@Param("record") ActivityProductSku record, @Param("example") ActivityProductSkuExample example);

    int updateByPrimaryKeySelective(ActivityProductSku record);

    int updateByPrimaryKey(ActivityProductSku record);

    ActivityProduct selectPriceByActivityIdAndProductId(@Param("activityId") Long activityId, @Param("productCentreId") Long productCentreId);
}